import request from '@/utils/request'

// 查询易制毒场所列表
export function listEzd(query) {
  return request({
    url: '/place/ezd/list',
    method: 'get',
    params: query
  })
}

// 查询易制毒场所详细
export function getEzd(ezdId) {
  return request({
    url: '/place/ezd/' + ezdId,
    method: 'get'
  })
}

// 新增易制毒场所
export function addEzd(data) {
  return request({
    url: '/place/ezd',
    method: 'post',
    data: data
  })
}

// 修改易制毒场所
export function updateEzd(data) {
  return request({
    url: '/place/ezd',
    method: 'put',
    data: data
  })
}

// 删除易制毒场所
export function delEzd(ezdId) {
  return request({
    url: '/place/ezd/' + ezdId,
    method: 'delete'
  })
}
